import request from '@/router/axios'

export function fetchList(query) {
  return request({
    url: '/stm/swstspecialcardapply/page',
    method: 'get',
    params: query
  })
}

export function addObj(obj) {
  return request({
    url: '/stm/swstspecialcardapply',
    method: 'post',
    data: obj
  })
}

export function getObj(id) {
  return request({
    url: '/stm/swstspecialcardapply/' + id,
    method: 'get'
  })
}

export function delObj(id) {
  return request({
    url: '/stm/swstspecialcardapply/' + id,
    method: 'delete'
  })
}

export function delBatchObj(id) {
  return request({
    url: '/stm/swstspecialcardapply/delBatchObj',
    method: 'delete',
    data:id
  })
}

export function putObj(obj) {
  return request({
    url: '/stm/swstspecialcardapply',
    method: 'put',
    data: obj
  })
}

export function importObj(obj) {
    return request({
      url: '/stm/swstspecialcardapply/import',
      method: 'post',
      data: obj,
      headers: {
        "Content-Type":"multipart/form-data;boundary="+new Date().getTime()
      }
    })
}

export function exportExcel(query){
  return request({
    url: '/stm/swstspecialcardapply/export',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}

export function submit(obj){
  return request({
    url: '/stm/swstspecialcardapply/submit',
    method: 'post',
    data: obj
  })
}

export function audit(obj){
  return request({
    url: '/stm/swstspecialcardapply/audit',
    method: 'put',
    data: obj
  })
}
